package com.emns.pojo;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import common.DateUtils;

@JsonIgnoreProperties({ "readingcount", "state", "content", "weight" })
public class YueduMobileQuery extends Yuedu {
	private String diffDate;

	public String getDiffDate() {
		if (getPublishdate() != null) {
			diffDate = DateUtils.getDiffString(getPublishdate(), new Date());
		}

		return diffDate;
	}

	public void setDiffDate(String diffDate) {
		this.diffDate = diffDate;
	}

}
